package com.fc.hkx.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fc.hkx.utils.DateJsonDeserializer;
import com.fc.hkx.utils.DateJsonSerializer;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by futurecreative on 2017/9/8.
 */
@JsonSerialize
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ResourceUseDateDetail {
    @JsonSerialize(using = DateJsonSerializer.class)
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private Date useDate;

    private BigDecimal checkPrice;

    @JSONField(name="UseDate")
    public Date getUseDate() {
        return useDate;
    }

    @JSONField(name="useDate")
    public void setUseDate(Date useDate) {
        this.useDate = useDate;
    }

    @JSONField(name="CheckPrice")
    public BigDecimal getCheckPrice() {
        return checkPrice;
    }

    @JSONField(name="checkPrice")
    public void setCheckPrice(BigDecimal checkPrice) {
        this.checkPrice = checkPrice;
    }
}
